package com.kita.broker.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kita.common.utils.PageUtils;
import com.kita.common.utils.Query;

import com.kita.broker.dao.BrokerMessageDao;
import com.kita.broker.entity.BrokerMessageEntity;
import com.kita.broker.service.BrokerMessageService;


@Service("brokerMessageService")
public class BrokerMessageServiceImpl extends ServiceImpl<BrokerMessageDao, BrokerMessageEntity> implements BrokerMessageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrokerMessageEntity> page = this.page(
                new Query<BrokerMessageEntity>().getPage(params),
                new QueryWrapper<BrokerMessageEntity>()
        );

        return new PageUtils(page);
    }

}